package com.chif.goingplus.service;

import com.chif.goingplus.pojo.Destination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationService {

    //查询全部终点
    List<Destination> queryAllDestination();


    //查询一个终点的信息
    Destination queryDestinationById(int id);

    //新增一目的地信息
    int addDestination(Destination destination);

    //更新出发点的信息
    int updateDestination(Destination destination);


    //删除一个地址信息
    int deleteDestinationById(@Param("deid") int id);
}
